package com.example.lulala.case0_16110100428.model;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class BaseModel {
    private static Retrofit retrofit;
    public BaseModel(String url){
        retrofit = new Retrofit.Builder().baseUrl(url).addConverterFactory(GsonConverterFactory.create()).build();
    }
    public static <T> T createService(Class<T> serviceClass){
        return retrofit.create(serviceClass);
    }


}

